Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Fixed PR 343138 - Contact fields with Chinese characters are returned as... #660

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

rwmtse
Copy link
Contributor

@rwmtse rwmtse commented May 25, 2013

... ?? when searching with PIM APIs
@bryanhiggins @erikjohnzon
I will port this to cordova-blackberry-plugins soon.

@jeffheifetz
Copy link
Contributor

If we were unescaping, don't we still need to do so?

@rwmtse
Copy link
Contributor Author

rwmtse commented May 28, 2013

@jeffheifetz I am not removing the unescaping, I just replaced those calls with decodeURIComponent(), which is used in other extensions. I don't know why this one used unescape()

@jeffheifetz
Copy link
Contributor

I know, but the issue is that escape will handle "'" characters. Should we perhaps be doing both?

@rwmtse
Copy link
Contributor Author

rwmtse commented May 30, 2013

@jeffheifetz Read this link about unescape() vs. decodeURIComponent()

@jeffheifetz
Copy link
Contributor

@rwmtse I have read the link and can tell you from personal experience that they handle different things. decodeURIComponent() will not handle ' characters while unescape() will. (There are other differences as well). Ultimately if you want ' characters encoded/decoded you need to do both.

@rwmtse
Copy link
Contributor Author

rwmtse commented May 31, 2013

@jeffheifetz Using both now

@rwmtse
Copy link
Contributor Author

rwmtse commented May 31, 2013

r+?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants